home *** CD-ROM | disk | FTP | other *** search
/ CD Actual 22 / PC Actual CD 22.iso / SHARE / prog / POVRAY / LNSEFCTS.ZIP / PLANET.POV < prev    next >
Encoding:
Text File  |  1997-07-18  |  1.8 KB  |  40 lines

  1. // LENS EFFECTS: PLANET ANIMATION
  2. // ******************************
  3. // This animation shows how you can use the effect_always_on_top option
  4. // to make the lens effect disappear behind all sorts of complex objects.
  5. // It also illustrates the effect_falloff and rays_flicker options.
  6.  
  7. // BACKGROUND
  8.    sky_sphere {pigment {granite color_map {[.8 rgb 0] [1 rgb 1]} scale 1e-3}}
  9.  
  10. // PLANET
  11.    union {sphere {0, 1 pigment {wrinkles color_map {[0 rgb <.2, 0, 0>] [1 rgb <.7, .3, .1>]} scale .3}}
  12.       difference {cylinder {-y, y, 1 scale <1.6, .03, 1.6>} cylinder {-y, y, 1 scale <1.2, .1, 1.2>}
  13.          pigment {onion pigment_map {
  14.             [.8 granite color_map {[.1 rgb <.5, .5, .6>] [.3 rgbt <.5, .5, .6, 1>]} scale .1] [.9 granite color_map {[.3 rgb <.4, .4, .4>] [.5 rgbt <.4, .4, .4, 1>]} scale .07]
  15.             [.93 granite color_map {[0 rgb <.6, .5, .3>] [.2 rgbt <.6, .5, .3, 1>]} scale .2] [1 granite color_map {[.1 rgb <.5, .5, .6>] [.3 rgbt <.5, .5, .6, 1>]} scale .1]}
  16.             scale 1.6}
  17.          rotate <10, 0, 0> no_shadow}
  18.       rotate y * clock * -50 scale 60 translate <-100, 0, 0>}
  19.  
  20. // CAMERA OPTIONS
  21.    #declare camera_location = <0, -40, -300>
  22.    #declare camera_look_at = <0, -40, 100>
  23.    #declare camera_angle = 45
  24.  
  25. // LENS EFFECT OPTIONS
  26.    #declare effect_type = "Sun"
  27.    #declare effect_always_on_top = false
  28.    #declare effect_falloff = 30
  29.    #declare rays_flicker = true
  30.    #declare effect_colour = <1.4, 1, 1>
  31.    #declare source_colour = <1.3, 1.3, .7>
  32.    #declare effect_brightness = 2
  33.  
  34.    #declare effect_location = vrotate(z, y * ((clock * 120) - 10)) * <300, 1, 200> + <-150, 30 - (clock * 150), 0>
  35.    #include "LENS.INC"
  36.  
  37. // CREATE LIGHT SOURCE FOR SUN
  38.    light_source {effect_location rgb 2}
  39.    global_settings {max_trace_level 10}
  40.